#include "Person.h"

Person::Person(string name, const Length& height, unsigned char flag):name_m(name), height_m(height), groupFlag_m(flag)
{
}

Person::Person(const Person& p):name_m(p.name_m), height_m(p.height_m), groupFlag_m(p.groupFlag_m)
{	
}

//Person(string name, const Length& height, const DisplayFormat*  displayFormat, unsigned char flag):name_m(name), height_m(height), displayFormat_m(displayFormat), typeFlag_m(flag)
//{
	
//}


void Person::displayByGroup(ostream& os, unsigned char groupFlag)
{
    if (groupFlag & groupFlag_m) os << name_m<<"\t"<< height_m <<"\n";
}

ostream& operator<<(ostream& os, const Person& p)
{
	os<<p.name_m<<"\t"<<p.height_m<<"\n";
}
